package com.weixin.base.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class ListRange<T> {
	private boolean success;
	private String message;
	private long totalSize; //总共多少条
	private List<T> list;
	private int pageSize; //每页多少条
	private Map<String,Object> sumTotal;
	private int pagecount; //总页数
	private int type;

	public ListRange() {
		this.totalSize = 0;
		this.list = new ArrayList<T>();
	}

	public long getTotalSize() {
		return totalSize;
	}

	public void setTotalSize(long totalSize) {
		this.totalSize = totalSize;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public Map<String, Object> getSumTotal() {
		return sumTotal;
	}

	public void setSumTotal(Map<String, Object> sumTotal) {
		this.sumTotal = sumTotal;
	}

	public int getPagecount() {
		return pagecount;
	}

	public void setPagecount(int pagecount) {
		this.pagecount = pagecount;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
}
